package campus.service.impl;

import campus.mapper.*;
import campus.model.*;
import campus.service.CashFlowService;
import campus.service.CashService;
import campus.util.PageResult;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
     * @Author M
     * @name  现金日记账
     * @Date 21:45 2020/5/10
 **/
@Service
public class CashFlowServiceImpl implements CashFlowService {

    @Autowired
    private CashFlowMapper cashFlowMapper;
    @Autowired
    private FinancialMapper financialMapper;
    @Autowired
    private AssetsLiabilitiesMapper assetsLiabilitiesMapper;
    @Autowired
    private ProfitsMapper profitsMapper;


    @Override
    public List<CashFlow> selectByExample(CashFlow cashFlow) {
        return cashFlowMapper.selectByAll(cashFlow);
    }

    @Override
    public List<Financial> selectByAll(Financial financial) {
        return financialMapper.selectByAll(financial);
    }

    @Override
    public List<AssetsLiabilities> selectAll(AssetsLiabilities assetsLiabilities) {
        return assetsLiabilitiesMapper.selectAll(assetsLiabilities);
    }

    @Override
    public List<Profits> selectByAl(Profits profits) {
        return profitsMapper.selectByAl(profits);
    }
}
